package com.baozheyangken.ai_learn.mapper;

import com.baozheyangken.ai_learn.pojo.entity.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseMapper {
    void save(Course course);

    List<Course> findAll();

    Course findById(Integer id);

    void updateCourse(Course course);

    void deleteById(Integer id);

    List<Course> findBySubjectAndGrade(String subject, String grade);

    List<Course> searchByKeyword(String keyword);

    List<Course> getAllCourses();
}
